-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualization of MCParticle + RecoParticle #43
Conversation
I have only briefly skimmed the paper you have linked and I probably have missed quite a few (i.e. almost all) of the details. One question in this context is the following: The paper talks about undirected graphs, but most (I think all of) our graphs actually are directed, since the relations have a clear direction. Am I missing something obvious here, why we would treat them as undirected graphs? Specifically for this visualization, what I would do is the following
This should give us a version 0 of how this would look like to iterate on. It's probably quite horrible, but it serves as a basis :) Immediate additional functionality that I can think of:
Having written down all that, it might be easiest to first make another PR (contrary to what I said during the meeting on Friday), where we only draw the reconstructed particles. To be most useful, this would probably require two main features. Drawing of either one or multiple reconstructed particle collections; Here one would be for |
|
You are right. I thought it could be useful anyway, because currently
Sorry, I should have fixed the test sooner so you can check this. But right now, all you mentioned is being drawn (user input is missing).
Yes, right now I draw an empty box for
Good, I'll add this. But when you mention that doesn't have a counterpart, it mean that either the MCParticle or RecoParticle don't have any MCRecoParticle association?
Well, in theory, when loading no matter what amount of MCRecoParticleAssociation collections are in the same event, all are going to be extracted and shown.
maybe we can use this one that already fixes some loading functionality.
Could you please explain a bit more 😟. I thought users would only filter according to the names as in edm4hep (datatypes).
Okay, then we could make it in another PR. |
Thanks for fixing the tests, so that I can now look at a preview (instead of guessing, what will be drawn) :) with the renaming of dmx -> eede, the preview link for this PR point to the wrong place, but it's easy enough to fix, so we shouldn't bother doing anything about it, I think. A few comments on the current state:
What I mean with this is that there might be several different collections of type
If you go through the |
I've implemented a "view" switcher as discussed in the last meeting. Users can switch between visualizing just Edit: The performance issue is when moving particles in the |
Very nice. I just had a quick look at the preview. I think for the main functionality we can already start about finalizing this PR and then making some of the views that are currently here a bit nicer in follow-up PRs to not make this one too big. How hard would it be to bring back the Filter and PDG / symbol toggle for the MCParticle tree view? Can we tie this additional content to a given view? Then already on the nitpicking side; Is it possible for the views to have "proper names", i.e. with spaces? I will try to have a look at the code a bit later as well. |
Hi @tmadlener, thank you so much for checking this today. Right now I've added back the filters only for the
Yeah, with the last changes, this is already good progress and works "well". Then we can continue with other objects/functionality. |
Thanks a lot for bringing back the filters for the MCParticle tree. Currently it seems to be "sticky", i.e. if I switch to the MCParticle tree view once, it stays visible also if I switch back to another view, e.g. here for the PDG toggle. Is it possible to fix this still with this PR? Or would that already involve the rework / redesign you are talking about? |
Yes, that would require me to redesign. |
Now that #48 is practically done, this PR may be closed as the other branch is a continuation of this one. |
Well, #48 has the same work as here and fixes a few things (shows colors for objects and different properties for |
BEGINRELEASENOTES
MCParticle
andReconstructedParticle
including theMCRecoParticleAssociation
.ENDRELEASENOTES
I've started working on visualization for
ReconstructedParticle
and theMCRecoParticleAssociation
, but more importantly, how to place around these objects. Hence, it's easy to see relations between the same types of objects and across them. Even though we first agreed on placing both objects on a column (MC
andReco
), I think we should think of a way to place these objects no matter what type (in the future, when more collections get added, we have to make sure that its well suited for any kind of collections). So after some research, I found out that there exist some different types of algorithms that could help us to make these visualizations. I've read this paper about force-directed graphs, which seem to be useful for EDM4hep, because works well for showing relations of general graphs and depending of which type, may also cluster them (which is similar to EDM4hep). I'll continue learning more about this and implement the one that we like the most (forceatlas2
is a good candidate).